<?php
namespace app\index\controller;

use app\index\model\weixin;

class Wei{
	/**
	 * 微信信息接入
	 * @return void 0
	 */
	public function setwei(){
		if (isset($_GET["signature"])) {
			$signature 	= $_GET["signature"];
        	$timestamp 	= $_GET["timestamp"];
        	$nonce 		= $_GET["nonce"];
        	$echoStr 	= $_GET["echostr"];
        
        	$weixin = new weixin($signature,$timestamp,$nonce,$echoStr);
        	exit;
		}else{
			echo '失败';
		}
	}
}